<?php

namespace App\Models;

use App\Library\Models\Entity;
use App\Library\Traits\Orm\AuctionOrderOrmTrait;

class AuctionOrderModel extends Entity
{
    use AuctionOrderOrmTrait;

    protected $table = 'auction_order';
    
    protected $casts = ['receive_info' => 'json'];

    protected $fillable = [
        'id',
        'serial_number',
        'auction_id',
        'file_id',
        'title',
        'user_id',
        'seller_id',
        'pay_price',
        'order_price',
        'freight',
        'refund_price',
        'status',
        'status_delete',
        'status_cancel',
        'status_pay',
        'status_refund',
        'status_deliver',
        'status_sign',
        'status_after_sale',
        'status_evaluate',
        'status_complete',
        'status_over_time',
        'pay_at',
        'refund_at',
        'deliver_at',
        'confirm_at',
        'auto_confirm_at',
        'refund_cut_off_at',
        'pay_end_at',
        'cancel_at',
        'delete_at',
        'remark',
        'system_remark',
        'receive_info',
        'user_deleted_at',
        'seller_deleted_at',
        'created_at',
        'updated_at'
    ];
}
